<?
$tree = yiistoGetCategoriesTree();
if(count($tree)>0){
    echo "<ul>";
    foreach($tree as $category){
        echo "<li>";
        echo CHtml::link($category['name'],yiistoAbsolutePath().$category['permalink']);
        if(count($category['childs'])>0){
            echo "<ul>";
                foreach($category['childs'] as $child){
                    echo "<li>";
                    echo CHtml::link($child['name'],yiistoAbsolutePath().$category['permalink'].'/'.$child['permalink']);
                    echo "</li>";
                }
            echo "</ul>";
        }
        echo "</li>";
    }
    echo "</ul>";
}
?>